import api from '../index';
import urls from './urls';

const header = {};


export default {
    getlist(ids) {
        // return出去了一个promise
        return api.get(urls.getlist, ids, null);
    },
    getonly(id) {
        // return出去了一个promise
        return api.get(urls.getonly, id, null);
    },
    getcheckitems(major) {
        return api.get(urls.getcheckitems, major, null);
    },
    add(data) {
        return api.post(urls.add, null, null, data);
    },
    modify(data) {
        return api.post(urls.modify, null, null, data);
    },
};